StartPage
| <<
Previous
| Next >> |
How to create a ZGTool |
The SUITE edition of ZipGenius includes the so-called ZGTools ,small programs that can works both independently or together with ZipGenius. These ZGTools are made by M.Dev Software, but other parties can create them, too.
To make
ZipGenius to recognize a ZGTool, this last must communicate its presence in the
TOOLS.INI file, which is placed in the folder where ZipGenius
is installed.
The ZGTools must write a section in this
file, just as shown in the following example:
[Collector]
cmd=C:\COLLECTOR\COLLECTOR.EXE
caption=Collect archives
params=-zg
results=c:\windows\deskop\result.txt
fileopen=0
senadarcname=0
sendselected=0
sendall=0
This example shows all the required parameters to use in a section.
CMD
This parameter tells
the full path of the ZGTool to ZipGenius
CAPTION
Write here
the caption of the item in the "Tools" menu that ZipGenius
wil create for the ZGTool.
PARAMS
Write here
additional parameters to the command-line. See
also
SendArcName,
SendSelected e SendAll
.
RESULTS
If the ZGTools write a result file, this parameter
tells to ZipGenius the path to this file; the main program
will show it in its internal editor.
FILEOPEN
This
parameter tells if the ZGTool can be used only if an archive is opened in
ZipGenius: "1" means "true", "0" means false
(the ZGTools can be
called always).
SENDARCNAME
If this
value is set to "1", the filename of the archive currently opened in ZipGenius is added to
the command-line.
SENDSELECTED
If
this value is set to "1", all the archived files that are selected in ZipGenius window will be added
to the command-line.
SENDALL
If this
value is set to "1", all the files listed in ZipGenius window will
be added to the command-line.
Tips for the developer:
In these keys you will find the AppPath string value where the installation path of ZipGenius is stored. That's the path of tool.ini, too.
For more info, contact M.Dev Software.
ZipGenius Tools | How to create a ZGTool | Cutter 3